
<div id="content" class="clear">
<div id="main" class="clear">
<div id="head" class="clear">
<h1>Form</h1>
<div id="actions"> 
<a href="http://miniplaneta.pl/encoreadmin/rc/2/table.html" class="button secondary">Cancel</a> 
<a href="http://miniplaneta.pl/encoreadmin/rc/2/table.html" class="button primary">Save changes</a>
</div>
<!-- end page actions-->
</div>
<?php echo validation_errors(); ?>
<?php echo form_open('article/edit',"class='mainForm clear'");?>
<p id="asterisk"> <span class="star">*</span> Fields marked with asterisk are required.</p>
<fieldset class="clear">
<legend> <span>Nows Post</span></legend>
<div class="field clear"> 
<label for="txtName">Title: <span class="star">*</span></label> 
<input type="text" value="<?php echo $article['title'];?>" name="title" class="text medium" id="txtName"> 
<a href="#" class="hint"> <img class="hint" alt="Hint" src="<?php echo base_url()?>img/ico/icohint.png"> 
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
<p class="error clear"></p>
</div>
<div class="field clear"> 
<label for="txtName">Form: <span class="star">*</span></label> 
<input type="text" value="<?php echo $article['source'];?>" name="source" class="text medium" id="txtName"> 
<a href="#" class="hint"> <img class="hint" alt="Hint" src="<?php echo base_url()?>img/ico/icohint.png"> 
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
<p class="error clear"></p>
</div>
<div class="field clear"> 
<label for="selSingleDropdown">Category: <span class="star">*</span></label> 
<select id="selSingleDropdown" name="category" class="medium"> 
<option>请选择分类</option>
<option value="<?php echo $cateis['ename'];?>"><?php echo $cateis['name']; ?></option>
  <?php 
   foreach($cate as $row)
   {
   	echo "<option value=".$row['ename'].">".$row['name']."</option>";
   }
  ?>
 </select>
 <a href='#' onclick="showCategory()">管理分类</a>
 </div>
 <div class="field clear"> 
<label for="areaText">description: <span class="star">*</span></label> 
<textarea cols="30" rows="5" name="description" class="area longest" id="areaText"><?php echo $article['description'];?>
</textarea> 
<a href="#" class="hint"> <img class="hint" alt="Hint" src="<?php echo base_url()?>img/ico/icohint.png"> 
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span>
</a>
<p class="error clear"></p>
</div>
 <div class="field clear"> 
<label for="txtName">Tags: <span class="star">*</span></label> 
<input id="txtName" class="text medium" name="tags" type="text" value="<?php echo $article['tags'];?>" /> 
<a class="hint" href="#"> <img src="<?php echo base_url()?>img/ico/icohint.png" alt="Hint" class="hint" /> 
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span></a>
<p class="error clear"></p>
</div>
</fieldset>
<fieldset class="clear">
<div class="field clear"> 
<label for="areaText">Body: <span class="star">*</span></label> 
<textarea name="body" rows="20" cols="80">
<?php echo $article['body'];?>
</textarea> 
<a class="hint" href="#"> <img src="<?php echo base_url()?>img/ico/icohint.png" alt="Hint" class="hint" /> 
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eu urna nisi, ut fringilla justo.</span>
</a>
<p class="error clear"></p>
</div>
<input type="hidden" name="id" value=<?php echo $article['id'];?> />
</fieldset>
 
   <input id="btnSubmit" class="button primary" type="submit" value="Save changes" /> 
   <input id="btnCancel" class="button secondary" type="button" value="Cancel" />
   
</form>
</div>
<div id="sidebar">
   <div id="boxFirst" class="sidebox clear">
   <h1>Sidebar form</h1>
   <div class="boxContent clear">
   <form id="formFilters" class="sideForm" action="#" method="get">
   <fieldset>
<legend>Filters</legend>
<div class="field clear"> 
<label for="txtNameSide">Name:</label> 
<input id="txtNameSide" class="text full" type="text" value="" />
</div>
<div class="field clear"> 
<span class="label">Status:</span>
<div class="multiple"> 
<input id="cbActive" class="checkbox" type="checkbox" checked="checked" /> 
<label for="cbActive">Active</label><br />
 <input id="cbInactive" class="checkbox" type="checkbox" />
<label for="cbInactive">Inactive</label>
</div></div>
<div class="field clear"> 
<span class="label">Range:</span>
<div class="multiple"> 
<label for="txtRangeA">from:</label>
 <input id="txtRangeA" class="text third" type="text" value="0" />
  <label for="txtRangeB">to:</label> 
  <input id="txtRangeB" class="text third" type="text" value="1" />
  </div>
  </div>
  <div class="field clear"> 
  <label for="selDropdownSide">Drop-down list</label>
   <select id="selDropdownSide" class="full"> 
   <option selected="selected">-- select --</option> 
   <option>Option A</option> <option>Option B</option> <option>Option C</option>
<option>Option D</option></select></div><div class="field clear"> <span class="label">Option select:</span><div class="multiple"> <input id="rbActive" class="radio" name="groupStatus" type="radio" checked="checked" /> <label for="rbActive">Active</label><br /> <input id="rbInactive" class="radio" name="groupStatus" type="radio" /> <label for="rbInactive">Inactive</label></div></div><div class="last field clear"> <label for="txtDateSide">Date select:</label> <input id="txtDateSide" class="text half" type="text" value="2010-10-24" /> <a href="#"> <img class="calendar" src="<?php echo base_url()?>img/ico/icocalendar.png" alt="Calendar" title="Click and choose the date" /></a></div> <input id="btnFind" class="button primary" type="submit" value="Find" /></fieldset></form></div></div><div id="help" class="sidebox"><h1>Context help</h1><div class="boxContent clear"><h2>Topic 1</h2>
<p> Lorem ipsum dolor sit amet consectetuer diam dis non ut aliquam. Lorem nibh Pellentesque ut nibh Nunc Suspendisse ut nibh dignissim hac. Nunc augue aliquet tempus non condimentum eget nibh Maecenas elit et.</p><h2>Topic 2</h2><p> Lorem ipsum dolor sit amet consectetuer diam dis non ut aliquam. Lorem nibh Pellentesque ut nibh <a href="#">Nunc Suspendisse</a> ut nibh dignissim hac. Nunc augue aliquet tempus non condimentum eget nibh Maecenas elit et.</p></div></div></div>
</div>
<div id="push">&nbsp;</div>
</div>